/**
 * Copyright (c) Freelens Authors. All rights reserved.
 * Copyright (c) OpenLens Authors. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */

@use "../workloads/workloads-mixins";
@use "../vars" as *;

.StatusBrick {
  @include workloads-mixins.pod-status-bgs;
  $brickSize: 8px;

  display: inline-block;
  width: $brickSize;
  height: $brickSize;
  margin-right: $margin;
  background: var(--colorVague);
  border-radius: 2px;

  &:last-child {
    margin-right: 0;
  }

  &.container-ephemeral {
    background-color: var(--colorInfo);
  }

  &.running {
    background-color: var(--colorOk);
  }

  &.restarted {
    background-color: var(--colorOk);
    outline: 1px solid var(--colorWarning);
    outline-offset: 3px;
  }

  &.terminated {
    background-color: transparent;
    border: 1px solid var(--colorTerminated);
  }

  &.failed {
    background-image: url("");
  }

  &.waiting {
    background-color: #ff980090;
    border: 1px solid var(--colorWarning);
  }
}
